package org.example.yunshu.demos.constant;

import lombok.Data;


public enum WebSocketTypeEnum {

    MESSAGE(1 , "MESSAGE"),CLOSE(0 , "CLOSE") , LOGOUT(88 , "LOGOUT")
    ,ADD(2 , "ADD") ,
    AGREE(3,"AGREE"),

    ERROR(4 , "ERROR");

    ;

    public int val ;
    public String type ;

    WebSocketTypeEnum(int val, String type) {
        this.val = val;
        this.type = type;
    }
}
